<?php /* Smarty version 2.6.20, created on 2017-07-22 15:37:14
         compiled from admin_orderdetail.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin_orderdetail.htm', 14, false),array('modifier', 'number_format', 'admin_orderdetail.htm', 70, false),array('modifier', 'get_pick_city_name', 'admin_orderdetail.htm', 88, false),)), $this); ?>
<header>
	<div class="nav-w">
    	<section class="nav-s"><a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/main.php?m=product&s=admin_buyorder"><nav>全部订单</nav></a></section>
    	<section class="nav-c"><span>订单详情</span></section>
   		<section class="nav-e"><a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/main.php"><nav>用户中心</nav></a></section>
    </div>
</header>
<link href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/css/orderdetail.css" rel="stylesheet" type="text/css" />

<div class="order clearfix">
    <div class="list">
        <p>订单状态：<b class="org"><?php echo $this->_tpl_vars['de']['statu_text']; ?>
</b></p>
    	<p>订单编号：<?php echo $this->_tpl_vars['de']['order_id']; ?>
</p>
        <p>下单时间：<?php echo ((is_array($_tmp=$this->_tpl_vars['de']['create_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d&nbsp;%H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d&nbsp;%H:%M:%S")); ?>
</p>
        <p>支付状态：<b><?php echo $this->_tpl_vars['de']['order_pay_status']; ?>
</b></p>
        <p>配送状态：<b><?php echo $this->_tpl_vars['de']['order_ship_status']; ?>
</b></p>
        <p>支付方式：<?php echo $this->_tpl_vars['de']['payment_name']; ?>
</p>
        <?php if ($this->_tpl_vars['de']['shipping_id'] == 0): ?>
        <?php if (! empty ( $this->_tpl_vars['de']['pick_name'] )): ?>
          <p>配送方式：上门自取</p>
          <?php endif; ?>
          <?php else: ?>
            <p>配送方式：<?php echo $this->_tpl_vars['de']['shipping_name']; ?>
</p>
        <?php endif; ?>
      
        <?php if ($this->_tpl_vars['de']['status'] >= 3): ?>
        <p>物流公司：<?php echo $this->_tpl_vars['de']['shipping_company']; ?>
</p>
        <p>物流单号：<?php echo $this->_tpl_vars['de']['shipping_no']; ?>
</p>
        <p>信息跟踪：<a href="http://m.kuaidi100.com/index_all.html?postid=<?php echo $this->_tpl_vars['de']['shipping_no']; ?>
">查看</a></p>
        <?php endif; ?>
	</div>
	<h2>商品清单</h2>
    
    <div class="item">
   		<div>
        <?php $_from = $this->_tpl_vars['de']['product']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['plist']):
?>
            <dl class="clearfix">
                <dt>
                    <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['plist']['product_id']; ?>
">
                        <img height="80" width="80" src="<?php if ($this->_tpl_vars['plist']['pic']): ?><?php echo $this->_tpl_vars['plist']['pic']; ?>
<?php else: ?>image/default/nopic.gif<?php endif; ?>" />
                    </a>
                </dt>
                <dd>
                    <p class="p-name"><a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['plist']['product_id']; ?>
"><?php echo $this->_tpl_vars['plist']['name']; ?>
</a></p>
                    <p class="p-price"><strong><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['plist']['price']; ?>
</strong> X <?php echo $this->_tpl_vars['plist']['num']; ?>
</p>
                    <p>座位：
                        <?php if (! empty ( $this->_tpl_vars['plist']['ticket_seat'] )): ?>
                        <?php $_from = $this->_tpl_vars['plist']['ticket_seat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['vo']):
?>
                        <?php echo $this->_tpl_vars['vo']['seat']; ?>
&nbsp;
                        <?php endforeach; endif; unset($_from); ?>
                        <?php else: ?>
                        择优分配
                        <?php endif; ?>
                    </p>
                    <?php if ($this->_tpl_vars['plist']['product_give']): ?>
                    <?php $_from = $this->_tpl_vars['plist']['product_give']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
                    <p class="p-detail">[赠品] <?php echo $this->_tpl_vars['list']['pname']; ?>
</p>
                    <?php endforeach; endif; unset($_from); ?>
                    <?php endif; ?>
                    <?php if ($this->_tpl_vars['plist']['service']): ?>
                    <?php $_from = $this->_tpl_vars['plist']['service']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
                    <p class="p-detail">[服务] <?php echo $this->_tpl_vars['list']['name']; ?>
&nbsp;&nbsp;<b class="red"><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['list']['price']; ?>
</b></p>
                    <?php endforeach; endif; unset($_from); ?>
                    <?php endif; ?>
                </dd>
            </dl>
            <?php endforeach; endif; unset($_from); ?>
        </div>
        <div class="bottom">
            <?php echo $this->_tpl_vars['lang']['logistics']; ?>
:&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['de']['freight'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>

        	<br />
        	<?php echo $this->_tpl_vars['lang']['pallprice']; ?>
:&nbsp;<span class="p-price"><strong><?php echo $this->_tpl_vars['config']['money']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['de']['cost']+$this->_tpl_vars['de']['freight'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</strong></span>
        </div>
    </div>
     <?php if ($this->_tpl_vars['de']['shipping_id'] != 0): ?>
    <h2>收货地址</h2>
    <div class="list">
		<p>收货人：<?php echo $this->_tpl_vars['de']['ship_name']; ?>
</p>
        <p>联系电话：<?php echo $this->_tpl_vars['de']['ship_mobile']; ?>
 <?php echo $this->_tpl_vars['de']['ship_tel']; ?>
</p>
        <p>收货地址：<?php echo $this->_tpl_vars['de']['ship_addr']; ?>
</p>
    </div>
    <?php else: ?>

  <h2>取票地址</h2>
    <div class="list">
        <p>取票人：<?php echo $this->_tpl_vars['de']['pick_name']; ?>
</p>
        <p>联系电话：<?php echo $this->_tpl_vars['de']['pick_mobile']; ?>
</p>
        <p>取票城市：<?php echo ((is_array($_tmp=$this->_tpl_vars['de']['pick_provinceid'])) ? $this->_run_mod_handler('get_pick_city_name', true, $_tmp) : get_pick_city_name($_tmp)); ?>
</p>
        <p>取票地址：<?php echo $this->_tpl_vars['de']['pick_addr']; ?>
</p>
    </div>

    <?php endif; ?>

    <?php if (! empty ( $this->_tpl_vars['de']['invoice_type'] )): ?>
    <h2>发票信息</h2>
    <div class="list">
        <p>发票信息：普通发票</p>

        <p>发票抬头：<?php echo $this->_tpl_vars['de']['invoice_company']; ?>
</p>

        <p>寄票地址：<?php echo $this->_tpl_vars['de']['invoice_addr']; ?>
</p>
    </div>
    <?php endif; ?>

    <?php if (! empty ( $this->_tpl_vars['de']['real_user_name'] )): ?>
    <h2>实名认证信息</h2>
    <div class="list">
        <p>姓名：<?php echo $this->_tpl_vars['de']['real_user_name']; ?>
</p>
        <p>证件类型：<?php if ($this->_tpl_vars['de']['real_card_type'] == 1): ?>身份证<?php else: ?>护照<?php endif; ?></p>
        <p>证件号码：<?php echo $this->_tpl_vars['de']['real_card_no']; ?>
</p>
    </div>
    <?php endif; ?>

</div>